<template>
	<div style="height: 100px;"></div>
	<van-field size="large" label-width="70px" 
	v-model="uid" center clearable placeholder="请输入uid" label="UID" />
	<van-field size="large" label-width="70px" 
	v-model="orderid" center clearable placeholder="请输入订单号" label="订单号" />
	<div class="submit-button">
	<van-button type="success" :loading="loading" loading-text="更新中..." @click="subMit">确定</van-button>
	</div>
</template>

<script setup>
	import { ref,watchEffect } from 'vue';
	import request from '@/api/request.js'
	const uid = ref('')
	const orderid = ref('')
	const loading = ref(false)
	
	async function subMit(){
		try{
			loading.value = true
			await request.get('/upload_orderid',{uid:uid.value,orderid:orderid.value})
			loading.value = false
		}catch(e){
			loading.value = false
		}
	}
</script>

<style scoped>
.submit-button{
	margin: 10px 0;
	display: flex;
	justify-content: center;
	align-items: center;
}
</style>